﻿using System.Collections.Generic;
using HMIS.FrameWork;
using FsCarInfo.Core.Entity;
using HMIS.FrameWork.DomainBase;

namespace FsCarInfo.Facade
{
    public interface ICarFacade : IDomainFacade
    {
        IList<Car> GetPlist(int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);
        bool IsFieldExist(string fieldName, string fieldValue, string id);
		void SaveOrUpdate(Car entity);
        void Delete(string id);
		IList<Car> QueryPlist(string query, int start, int limit, out long total);
		Car Get(string id);
		Car Load(string id);
		void SaveCar(Car car, string inheritedCarId);

		IList<Car> QueryCarList(string query, int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);
	}
}
